package com.example.shushiyunsst.fragment.main.wallet.bean

import java.io.Serializable
import java.math.BigDecimal

//只支持充值和提现
const val SST = 0

//只支持转账和收款
const val CML = 1

const val SSL = 2

const val ARL = 3

data class MyCaptureBean(
    //支持的交易类型
    val iconType: Int,
    val moneyName: String,
    val money: Double,
    val available: Double,
    val convertToCNY: Double,
    val msg: String
) : Serializable {

    fun getMoney() = "$moneyName≈(${money} CNY)"

    fun getMoney22() = "$moneyName≈(${money} SST)"

    fun getAvailable() = "可用\t\t${available}"

    fun getConvertToCNY() = "折合(CNY)\t\t${convertToCNY}"

//    fun isOnlyRechargeAndWithdraw() = transactionType == only_recharge_and_withdraw
//
//    fun isOnlyTransferAndCollections() = transactionType == only_transfer_and_collections
}